home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / tool / helper / src / graphic.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  2.1 KB  |  84 lines

  1. /*
  2.  *    GRAPHIC.H
  3.  */
  4.  
  5. #define    ON        1
  6. #define    OFF        0
  7.  
  8. #define    M_PSET        0
  9. #define    M_XOR        4
  10.  
  11. #define    MOS_NOMAL    0
  12. #define    MOS_HAND    1
  13. #define    MOS_WAIT    2
  14. #define    MOS_3        3
  15. #define    MOS_4        4
  16.  
  17. #define    IS_FLP        '\x00'
  18. #define    IS_EFLP        '\x01'
  19. #define    IS_SCSI        '\x02'
  20. #define    IS_RAM        '\x03'
  21. #define    IS_MDC        '\x04'
  22. #define    IS_ROM        '\x05'
  23. #define    IS_CDR        '\x06'
  24. #define    IS_UNKW        '\x07'
  25. #define    IS_NON        '\xFF'
  26.  
  27. typedef struct {
  28.     char        *ptn;
  29.     short int   sel;
  30.     short int   x1,y1;
  31.     short int   x2,y2;
  32.     char        img[1];
  33. } BLOCK;
  34.  
  35. void    DSP_mos(int no);
  36. BLOCK    *DSP_push_vram(int x1,int y1,int x2,int y2);
  37. void    DSP_pop_vram(BLOCK *para);
  38. void    DSP_putptn(char *p,int x1,int y1,int x2,int y2,int fc,int bc,int md);
  39. void    DSP_strimg(char *ptn, int x, int y, int fc, int bc, int mod);
  40. void    DSP_msg(char *str,int x,int y,int font,int fc,int bc,int mod);
  41. void    DSP_connect(int x1,int y1,int x2,int y2,int col,int mod);
  42. void    DSP_line(int x1,int y1,int x2,int y2,int col,int mod);
  43. void    DSP_box(int x1,int y1,int x2,int y2,int col,int mod);
  44. void    DSP_rbox(int x1,int y1,int x2,int y2,int lin,int col,int mod);
  45. void    DSP_wbox(int x1,int y1,int x2,int y2,int lin,int col,int mod);
  46. void    DSP_opbox(int x1,int y1,int x2,int y2);
  47. void    DSP_clbox(int x1,int y1,int x2,int y2);
  48. void    DSP_offset(int page,int x,int y);
  49. void    DSP_clear(int page);
  50. void    DSP_init(void);
  51. void    DSP_end(void);
  52. void    ICON_init(void);
  53. void    ICON_disp(int x,int y,int drv);
  54.  
  55. void    wrtstr(char *str,int page,int x,int y,
  56.            int chrcol,int bakcol,int fsiz);
  57. void    putstr(char *str,int page,int y);
  58. void    ctblset(int chrcol,int bakcol);
  59. void    vram_offset(int reg,int ofs);
  60. int    sjistojis(int jis);
  61. int    peek(int port);
  62.  
  63. void    gprintf(int x,int y,int c,int b,char *form,...);
  64. void    gputs(int x,int y,int c,int b,char *str);
  65.  
  66. extern char    kantbl[256];
  67. extern int    tick_timer;
  68. extern int    now_mos;
  69. extern char    drv_tbl[];
  70.  
  71. #ifdef    iskanji
  72.     #undef iskanji
  73. #endif
  74.  
  75. #ifdef    iskanji2
  76.     #undef iskanji2
  77. #endif
  78.  
  79. #define    ISKAN1    1
  80. #define    ISKAN2    2
  81.  
  82. #define    iskanji(c)    (kantbl[(unsigned char)c]&ISKAN1)
  83. #define    iskanji2(c)    (kantbl[(unsigned char)c]&ISKAN2)
  84.